<template>
	<view>
		<view class="address_k" v-for="(item,index) in 3">
			<image src="../../static/users/address.png" mode=""></image>
			<view class="add_msg">
				<text class="text1">王二狗</text>
				<text class="text2">15282094569</text>
				<text class="text3" v-if="index==1">默认</text>

				<view class="address">
					四川省成都市双流区机场街道百草路
					125号新丽花园二期
				</view>
			</view>
			<view class="xian"></view>
			
			<view class="emit_add" @click="emit">
				编辑
			</view>
		</view>
		


		<view class="di_c">
			<view class="us" @click="jiaaddress">
				添加地址
			</view>

			<view class="xia_x">

			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {}
		},
		methods: {
        jiaaddress(){
			uni.navigateTo({
				url:"../addaddress/addaddress"
			})
		},
		emit(){
			uni.navigateTo({
				url:"../addaddress/addaddress?id="+"1"
			})
		}
		}
	}
</script>

<style lang="scss">
	page {
		background-color: #F2F4FA;
	}

	.address_k {
		margin: 18rpx 0 0 30rpx;
		width: 690rpx;
		height: 210rpx;
		background: #FFFFFF;
		border-radius: 40rpx;
		position: relative;

		image {
			margin: 60rpx 0 0 22rpx;
			width: 97rpx;
			height: 97rpx;
		}
		
		.xian{
			position: absolute;
			top: 50rpx;
			right: 124rpx;
			width: 1rpx;
			height: 120rpx;
			background: #E5E5E5;
		}
        .emit_add{
			position: absolute;
			top: 94rpx;
			right: 39rpx;
			font-size: 24rpx;
			font-family: PingFang SC;
			font-weight: 300;
			color: #181818;
		}
		.add_msg {
			position: absolute;
			left: 145rpx;
			top: 40rpx;
			width: 390rpx;
			height: 110rpx;

			.text1 {
				font-size: 30rpx;
				font-family: PingFang SC;
				font-weight: 300;
				color: #181818;
			}

			.text2 {
				margin-left: 29rpx;
				font-size: 24rpx;
				font-family: PingFang SC;
				font-weight: 300;
				color: #666666;
			}

			.text3 {
				margin-left: 20rpx;
				background: #181818;
				border-radius: 10rpx;
				font-size: 18rpx;
				font-family: PingFang SC;
				font-weight: 300;
				color: #FFFFFF;
				padding: 2rpx 13rpx;
			}

			.address {
				margin-top: 30rpx;
				width: 390rpx;
				height: 70rpx;
				font-size: 24rpx;
				font-family: PingFang SC;
				font-weight: 300;
				color: #181818;
				display: -webkit-box;
				-webkit-box-orient: vertical;
				-webkit-line-clamp: 2;
				overflow: hidden;
			}
		}
	}
	
	


	.di_c {
		position: fixed;
		bottom: 0;
		width: 750rpx;
		height: 209rpx;
		background-color: #fff;

		.us {
			margin: 40rpx auto;
			width: 610rpx;
			height: 100rpx;
			background: #181818;
			box-shadow: 0px 10rpx 40rpx 0px rgba(24, 24, 24, 0.26);
			border-radius: 50rpx;
			text-align: center;
			line-height: 100rpx;
			font-size: 32rpx;
			font-family: PingFang SC;
			font-weight: 500;
			color: #FFFFFF;
		}

		.xia_x {
			margin: 0rpx 0 0 241rpx;
			width: 268rpx;
			height: 10rpx;
			background-color: #000;
		}
	}
</style>
